#pragma once

#include <QDialog>
#include <osg\Vec4>
#include <QLineEdit>
#include <QDoubleSpinBox>
#include <QSlider>

class QCheckBox;

class FogSettingDialog : public QDialog
{
	Q_OBJECT
public:
	FogSettingDialog(QWidget* parent=0,Qt::WindowFlags f=0);
	~FogSettingDialog();

	void editFog();
private:
	void editEnd();
	QPushButton*							_cancelButton;
	QSlider*								_startSlider;
	QDoubleSpinBox*							_startSpinBox;
	QSlider*								_endSlider;
	QDoubleSpinBox*							_endSpinBox;
	QDoubleSpinBox*							_densitySpinBox;
	QLineEdit*								_lineEditR;
	QLineEdit*								_lineEditG;
	QLineEdit*								_lineEditB;
	QCheckBox*								_openFogCheckBox;
	QPushButton*							_colorSelectBtn;
private slots:
	void slotStartSliderEditingFinished(int);
	void slotStartSpinBoxEditingFinished(double);
	void slotEndSliderEditingFinished(int);
	void slotEndSpinBoxEditingFinished(double);
	void slotCheckBoxStateChanged(int);
	void slotDensitySpinBoxEditingFinished(double);
	void slotSelectColor();
};